package com.example.yoga.mapper;

import com.example.yoga.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-19
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    @Select("SELECT COUNT(*) FROM course")
    int getTotalCourse();
}
